<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>画廊详情页</title>
<link href="../style/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.pic{width: 185px;height: 225px;background: center center;}
.pic a{display:block;width: 185px;height: 225px;}

.gallery_name {font-size: 14px;color: #FF6600;font-weight: bold;}

</style>

</head>

<body> 

<%@include file="/commons/head.jsp"%>

<table width="960" align="center" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #ccc;">
       <tr><td colspan="100%" bgcolor="#ffffff">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-top: 20px;padding-bottom: 20px;padding-left: 23px;">
          <tr>
            <td><table width="179" height="159" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="41" background="../images/hldt1.gif" align="center"><span class="gallery_name">${gallery.name }</span></td>
              </tr>
              <tr>
                <td height="120" background="../images/hldt2.gif" style="font-family: 宋体;	font-size: 13px;line-height: 25px;padding-left: 12px;color: #e27135">
                <span class="style21">代理画作：${gallery.totalCount_painting } 幅<br>
				                    合作画家：${gallery.totalCount_painters } 位<br>
				                    访问次数：${gallery.totalCount_visit } 人次<br>
				                   已售作品：${gallery.totalCount_sold }幅
                  </span></td>
              </tr>
            </table></td>
            <td height="13" valign="bottom"><table width="733" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td colspan="100%" class="nw12c">简介：<br>
					&nbsp;&nbsp;&nbsp;&nbsp;${gallery.description }</td>
              </tr>
               <tr>
	            <td width="383" class="nw12a">所在地：${gallery.cityInfo.name }${gallery.address }</td>
	            <td width="156" class="nw12a">业务联系人：${gallery.contact }</td>
	            <td width="194" class="nw12a">咨询电话：${gallery.tel }</td>
	          </tr>
            </table></td>
          </tr>
        </table></td></tr>
      <tr>
        <td class="bt14A" style="padding-left: 23px;"><strong>合作艺术家与其作品</strong></td>
      </tr>
      <tr>
       <td style="padding-left: 23px;">
      <c:forEach items="${requestScope.returnList}" var="result" varStatus="status">
        <table width="912" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC" style="margin-bottom: 20px;">
          <tr>
            <td bgcolor="#FFFFFF"><table width="910" border="0" cellspacing="0" cellpadding="0">
       		<tr>
            <td width="20" height="250">&nbsp;</td>
            <td width="180" align="center" valign="middle">
                <table width="180"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td colspan="100%" align="center">	           				
				      	<a href="${ctx }/front/painterAction!painterDetail.do?id=${result.painter.id }">
				      		<img src="${result.painter.originalImagePath}" border="0" width="147" height="181"/>
				      	</a>
	           		</td>
                  </tr>
                  <tr>
                    <td class="nw12a" align="center">${result.painter.name } 作品${result.painter.totalCount }幅</td>
                  </tr>
                </table>
            </td>
            <td width="12">&nbsp;</td>
            <td width="205" align="center">
                <c:if test="${fn:length(result.paintings) > 0 }">
                <c:forEach items="${result.paintings}" var="painting" varStatus="status" begin="0" end="0">
					<div style="background-image: url('${painting.middleImageApath }');" class="pic">
				          	<a href="${ctx}/front/backgroundAction!showDetail.do?id=${painting.id }"></a>
				    </div>
				</c:forEach>
			   </c:if>
            </td>
            <td width="12">&nbsp;</td>
            <td width="205" align="center">
              <c:if test="${fn:length(result.paintings) > 1 }">
                  <c:forEach items="${result.paintings}" var="painting" varStatus="status" begin="1" end="1">
					<div style="background-image: url('${painting.middleImageApath }');" class="pic">
				          	<a href="${ctx}/front/backgroundAction!showDetail.do?id=${painting.id }"></a>
				    </div>
				</c:forEach>
			   </c:if>
            </td>
            <td width="12">&nbsp;</td>
            <td width="210" align="center">
              <c:if test="${fn:length(result.paintings) > 2 }">
                <c:forEach items="${result.paintings}" var="painting" varStatus="status" begin="2" end="2">
					<div style="background-image: url('${painting.middleImageApath }');" class="pic">
				          	<a href="${ctx}/front/backgroundAction!showDetail.do?id=${painting.id }"></a>
				    </div>
				</c:forEach>
			  </c:if>
            </td>
            <td width="56" align="center" valign="middle" class="nw12a"><a href="${ctx }/front/painterAction!painterDetail.do?id=${result.painter.id }">&gt;&gt;进入</a></td>
          </tr>
        </table></td></tr></table>
         </c:forEach>
        </td>
      </tr>
</table>

<%@include file="/commons/foot.jsp" %>

</body>
</html>